package com.example.enumTest;

public enum DateEnum {

    MONDAY("MONDAY","星期一"),
    SUNDAY("SUNDAY","星期天"),
    TUESDAY("TUESDAY","星期二");

    @Override
    public String toString() {
        return "DateEnum{" +
                "value='" + value + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }


    DateEnum(String value,String desc){
        this.value=value;
        this.desc=desc;
    }
    private String value;
    private String desc;

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
